<template>
  <div class="app-container">
    <el-table
      v-loading="loading"
      :data="volunterrwList"
    >
      <!-- <el-table-column label="志愿者任务id" align="center" prop="sportVolunterrwuid" /> -->
      <el-table-column
        label="志愿者学号"
        align="center"
        prop="sportVolunternumber"
      />
      <el-table-column
        label="志愿者专业"
        align="center"
        prop="sportVoluntermajor"
      />
      <el-table-column
        label="志愿者学院"
        align="center"
        prop="sportVolunteracademy"
      />
      <el-table-column
        label="志愿者名字"
        align="center"
        prop="sportVoluntername"
      />
      <el-table-column
        label="志愿者手机号"
        align="center"
        prop="sportVolunteriphone"
      />
      <el-table-column
        label="志愿者对应届目"
        align="center"
        prop="sportVolunterjie"
      />
      <el-table-column
        label="志愿者负责项目"
        align="center"
        prop="sportVolunterxm"
      />
      <el-table-column
        label="任务备注"
        align="center"
        prop="sportVolunterjbeizhu"
      />
    </el-table>

    <pagination
      v-show="total > 0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />


  </div>
</template>

<script>
import {
  getvolunterlist
} from "@/api/sportVolunterrw/volunterrw";

export default {
  name: "Volunterrw",
  data() {
    return {
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 配置志愿者任务表格数据
      volunterrwList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
      },
    };
  },
  created() {
    this.getList();
 
  },
  methods: {

    /** 查询配置志愿者任务列表 */
    getList() {
      this.loading = true;
      getvolunterlist().then((response) => {
        this.volunterrwList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
  }
};
</script>
